<?php include 'header.php'; ?>
		<div class="content content-interna">
			<h2 class="titulo-interna">Parceiros</h2>
			<div class="seletor-lista">
				<label class="filter">FILTRE:</label>
				<form name="filtro_evento" action="<?php $url = site_url(); echo $url . '/parceiros/' ?>" action="post">
					<select name="segmento" class="select-eventos" placeholder="Segmento">
						<option value="" selected="selected" style="display:none;">Segmento</option>
						<option value="">Todos</option>
						<?php 
						$tipos = get_terms('segmento');
						foreach($tipos as $tipo){
						?> <option value="<?php echo $tipo->slug ?>"><?php echo $tipo->name; ?></option>	
						<?php } ?>
					</select>
					<select name="letra" class="select-eventos" placeholder="Letra">
						<option value="" selected="selected" style="display:none;">Letra</option>
						<option value="">Todos</option>
						<?php 
						$generos = get_terms('letra');
						foreach($generos as $genero){
						?> <option value="<?php echo $genero->slug ?>"><?php echo $genero->name; ?></option>	
						<?php } ?>
					</select>
					<input type="submit" name="submit" value="Faça sua Busca" id="submit-filtro-p"/>
				</form>
			</div>
			<ul class="parceiros">
				<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
				$params = $_SERVER['QUERY_STRING']; 
				query_posts('post_type=parceiro&posts_per_page=8&paged=' . $paged . '&' . $params); ?>
				<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
					<li class="parceiro">
						<div class="wrapper-img"><?php the_post_thumbnail( 'parceiro' ); ?></div>
						<div class="texto">
							<h3><?php the_title(); ?></h3>
							<?php the_content(); ?>
							<a href="<?php echo get('informacoes_link'); ?>" target="blank">Ir para o Site</a>
						</div>
						<span class="clear"></span>
					</li>
				<?php endwhile; endif; ?>
				<span class="clear"></span>
			</ul>
			<?php wp_pagenavi(); ?>
			<span class="clear"></span>
		</div><!-- content -->
<?php include 'footer.php'; ?>